package com.zitangkou.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zitangkou.user.entity.EnterpriseDo;
import com.zitangkou.user.req.enterprise.GetEnterpriseByPageReq;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 企业
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/31 16:39
 */

@Repository
public interface EnterpriseMapper extends BaseMapper<EnterpriseDo> {
    /**
     * 分页查询企业
     *
     * @param req
     * @return java.util.List<com.zitangkou.user.model.entity.EnterpriseDO>
     * @author Deng Ningning
     * @date 2020/9/1 17:20
     */
    List<EnterpriseDo> selectEnterpriseByPage(@Param("req") GetEnterpriseByPageReq req);

    /**
     * 分页查询企业总数
     *
     * @param req
     * @return java.lang.Integer
     * @author Deng Ningning
     * @date 2020/9/1 14:15
     */
    Integer countEnterpriseByPage(@Param("req") GetEnterpriseByPageReq req);

}
